#需要安装pyqt5
import sys
from PyQt5.QtGui import *
from PyQt5.QtCore import *
def rightMenu(self,a):
    menu=QMenu(self)
    menu.addAction(QAction('隐藏',self,triggered=self.hide))
    menu.addAction(QAction('退出',self,triggered=self.quit))
    menu.exec_(QCursor.a())
def quit(self):
    self.close()
    sys.exit()
def hide(self):
    self.setVisible(False)
if _name_=='_main_'
  app=QApplocation(sys.argv)
  pet=tablepet()
  sys.exit(app.exec_())
